/*
 *  hihocoder.com
 *
 *  Category: unknown
 */

/*-------- Includes --------*/
#include <cmath>
#include <iostream>

using namespace std;

/*-------- Defines --------*/


/*-------- Types --------*/


/*-------- Global Variables --------*/
int sx[4] = {1, 1, -1, -1};
int sy[4] = {-1, 1, 1, -1};

/*-------- Function Prototypes --------*/
int quad(int x, int y);
int gcd(int a, int b);

/*-------- Main Function --------*/
int main(int argc, char const *argv[])
{
    int x1, y1, x2, y2;
    int dx, dy;

    cin >> x1 >> y1 >> x2 >> y2;

    dx = x2 - x1;
    dy = y2 - y1;

    int d = gcd(dx, dy);

    x2 += sx[quad(dx, dy)] * abs(dy / d);
    y2 += sy[quad(dx, dy)] * abs(dx / d);

    cout << x2 << " " << y2 << endl;

    return 0;
}

/*-------- Functions --------*/
int quad(int x, int y)
{
    if (x < 0)
        if (y < 0) return 2;
        else       return 1;
    else
        if (y < 0) return 3;
        else       return 0;
}

int gcd(int a, int b)
{
    if (b == 0) return a;
    else        return gcd(b, a % b);
}
